package com.mallotec.android.timenote.data.repository;

import android.content.Context;

import com.mallotec.android.timenote.data.AppDatabase;

/**
 * @author reborn
 * @program TimeNote
 * @description
 * @create 2020-10-28 02:20
 **/
public class RepositoryProvider {

    /**
     * 得到时间记录的本地数据仓库
     * @param context
     * @return
     */
    public static TimenoteRepository getTimenoteRepository(Context context) {
        return TimenoteRepository.getInstance(AppDatabase.getInstance(context).getTimenoteDao());
    }
}
